package com.web.manager.cyclecomm.comm;

import com.web.config.CycleCommConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * Created by easemob on 2017/3/31.
 */
@Component
public class OrgInfo {
    @Autowired
    private  CycleCommConfig cycleCommConfig;
    public static String ORG_NAME;
    public static String APP_NAME;
    public static final Logger logger = LoggerFactory.getLogger(OrgInfo.class);
    private static OrgInfo orgInfo;
    @PostConstruct
    public void init() {
        orgInfo = this;
        orgInfo.cycleCommConfig = this.cycleCommConfig;
        ORG_NAME=orgInfo.cycleCommConfig.getOrg_name();
        APP_NAME=orgInfo.cycleCommConfig.getApp_name();
    }


}
